<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../head.jsp"%>
<%@page import="cn.bbs.ba.base.UserInfo"%>
<%@page import="cn.bbs.ba.session.SessionFactory"%><html>
<%	
	UserInfo userInfo = (UserInfo)SessionFactory.getSessionDto(request).getMap();
%>
<head>
<link rel="stylesheet" href="<%=webBackPath %>css/common.css" type="text/css"/>
<script type="text/javascript" src="<%=webBackPath %>js/calendar.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script>
<script type="text/javascript" src="<%=webBackPath %>js/prototype-1.6.0.3.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/json.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/md5.js"></script> 
<script language='javascript'>
/**
* 提交
*/
function doSubmit(){
	var form = document.editFrom;
	var accNo = document.getElementById("accNo").value;
	var accName = document.getElementById("accName").value;
	var brachName = document.getElementById("brachName").value;
	var pwd = document.getElementById("pwd").value;
	
	if(isEmpty(accNo)) {
		alertPP("请输入账户号码！");
		return false;
	}
	
	if(isEmpty(accName)) {
		alertPP("请输入账户名！");
		return false;
	}
		
	if(isEmpty(pwd) || pwd.length < 6) {
		alertPP("密码必须大于6位！");
		return false;
	}
	
	form.accNo.value = accNo;
	form.accName.value = accName;
	form.brachName.value = brachName;
	form.pwd.value = hex_md5(pwd);
	form.submit();
}

</script>
</head>
<body>

<div id="man_zone">

    <table width="99%" border="1" align="center"  cellpadding="3" cellspacing="1">
	<tr>
      <td colspan="4"><bbsh:BBSH name="账户基本信息"/></td>
    </tr>
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="账号"/>：</td>
      <td width="82%" colspan="3">
      	<INPUT TYPE="text" class="normal_txt" name="accNo" id="accNo" maxlength="20" size="50" value="">
	  </td>
    </tr>
    
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="账户名"/>：</td>
      <td width="82%" colspan="3">
      	<INPUT TYPE="text" class="normal_txt" name="accName" id="accName" maxlength="30" size="50" value="">
	  </td>
    </tr>
    
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="开户行名"/>：</td>
      <td width="82%" colspan="3">
      	<INPUT TYPE="text" class="normal_txt" name="brachName" id="brachName" maxlength="30" size="50" value="">
	  </td>
    </tr>
    <tr>
      <td colspan="4"><bbsh:BBSH name="取款密码"/></td>
    </tr>
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="取款密码"/>：</td>
      <td width="50%" colspan="1">
      	<INPUT TYPE="password" class="normal_txt" name="pwd" id="pwd" maxlength="30" size="30" value="">
	  </td>
	  <td width="32%">
      	<bbsh:BBSH name="取款密码请切记"/>
	  </td>
    </tr> 
	<tr>
      <td></td>
      <td colspan="3"><INPUT TYPE="button" class="normal_button" onclick="doSubmit();" value="<bbsh:BBSH name='添加'/>"></td>
    </tr>
  </table>
</div>
   <form name="editFrom" action="<%=webAppPath %>accInfo.pk" method="post">
	   <input type="hidden" name="updateFlag" value="addAccInfo"> 
	   <input type="hidden" name="accNo" value=""> 
	   <input type="hidden" name="accName" value=""> 
	   <input type="hidden" name="brachName" value=""> 
	   <input type="hidden" name="pwd" value=""> 
   </form>
</body>
</html>
